package design.Facade;

/**
 * Created by looper on 2017/8/16.
 */
public class FacadeTest {
  public static void main(String[] args) {
    Computer computer = new Computer();
    //电脑开机   将CPU,硬盘,内存的启动放到一起,提供一个总的开机方法
    computer.startUp();

    System.out.println();

    //电脑关机   将CPU,硬盘,内存的关闭放到一起,提供一个总的关机方法
    computer.shutdown();
  }
}
